import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import './style.css' 
import { createPinia } from 'pinia'
const pinia = createPinia()
import router from './router'
import App from './App.vue'
import axios from 'axios' 
import VueAxios from 'vue-axios'
import api from './request/api' 
import 'tailwindcss/tailwind.css'

const app = createApp(App)
  
app.use(ElementPlus, {
    locale: zhCn,
  })
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }

app.config.globalProperties.api = api;

app.use(pinia)
app.use(router)
app.use(VueAxios,axios)

app.mount('#app')
